package com.qiuyang.service.show.Impl;

import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;
import com.qiuyang.mapper.TypeMapper;
import com.qiuyang.mapper.show.ShowTypeMapper;
import com.qiuyang.pojo.Blog;
import com.qiuyang.pojo.Type;
import com.qiuyang.service.show.ShowTypeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ShowTypeServiceImpl implements ShowTypeService {
    @Autowired
    private ShowTypeMapper showTypeMapper;

    @Override
    public List<Type> findAllType() {
        return showTypeMapper.findAllType();
    }

    @Override
    public List<Blog> findBlogByType(Long id) {
        return showTypeMapper.findBlogByType(id);
    }
}
